package com.hn658.base.message.comet.context;

import com.hn658.base.message.account.entity.AccountUserInfoEO;
import com.hn658.framework.common.AbstractBaseDTO;


/**
 * 请求上下文
 * 
 * @author Administrator
 */
public class RequestContext extends AbstractBaseDTO {
	/**
	 * 用户信息
	 */
	private AccountUserInfoEO userInfo;

	/**
	 * 设备号
	 */
	private String deviceId;

	/**
	 * 应用id
	 */
	private String appId;

	/**
	 * 用户uid
	 */
	private Long uid;

	/**
	 * 登录验证码
	 */
	private String token;

	/**
	 * 参数签名
	 */
	private String sign;

	/**
	 * 请求时间
	 */
	private String timestamp;

	/**
	 * 设备类型
	 */
	private Integer deviceType;
	
	/**
	 * 当前用户ip
	 */
	private String ip;
	
	/**
	 * 请求id
	 */
	private String requestId;
	
	
	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public Integer getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * @return the deviceId
	 */
	public String getDeviceId() {
		return deviceId;
	}

	/**
	 * @param deviceId
	 *            the deviceId to set
	 */
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	/**
	 * 当前请求签名
	 */
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	/**
	 * 当前请求时间戳
	 */
	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	/**
	 * 当前请求对应uid
	 */
	public Long getUid() {
		return uid;
	}
	
	public void setUid(Long uid) {
		this.uid = uid;
	}
	
	/**
	 * 当前用户对应登录authkey
	 */
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public AccountUserInfoEO getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(AccountUserInfoEO userInfo) {
		this.userInfo = userInfo;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}


}
